package com.phoenix.hotdepoly.deploy;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

public class HotSwapClassLoader extends ClassLoader{
    public Class<?> loadClassFromFile(String className, Path classFile) throws IOException {
        byte[] classBytes = Files.readAllBytes(classFile);
        return defineClass(className,classBytes,0,classBytes.length);
    }
}
